<include file="Public:pagerForm" />
<script type="text/javascript">
function reload15() {
    navTab.reload("__URL__", {});
}
function functrall(){
	tbody=document.getElementById("priceentrytbody");
	objname=document.getElementsByName("checkboxx[]");
	checkboxx=document.getElementById("check");
	var jingzong=0;
	var zonge=0;
    for(var i=0;i<objname.length;i++)
    {   
    	if(checkboxx.checked){
    		jingzong+=parseFloat(tbody.rows[i].cells[2].firstChild.innerHTML);
        	zonge+=parseFloat(tbody.rows[i].cells[4].firstChild.innerHTML);
    	}
    } 
	var jz=document.getElementById("hj2").cells[2];
	var ze=document.getElementById("hj2").cells[4];
	jz.innerHTML=jingzong;
	ze.innerHTML=zonge;
}
function functr(){
	tbody=document.getElementById("priceentrytbody");
	objname=document.getElementsByName("checkboxx[]");
	var jingzong=0;
	var zonge=0;
    for(var i=0;i<objname.length;i++)
    {   
    	if(objname[i].checked)
        {   
        	jingzong+=parseFloat(tbody.rows[i].cells[2].firstChild.innerHTML);
        	zonge+=parseFloat(tbody.rows[i].cells[4].firstChild.innerHTML);
        }
    } 
	var jz=document.getElementById("hj2").cells[2];
	var ze=document.getElementById("hj2").cells[4];
	jz.innerHTML=jingzong;
	ze.innerHTML=zonge;
}
  
</script>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" rel="priceentry" action="__URL__/priceentrypay/ids/{$ids}" method="post">
		<div class="searchBar"  style="height: 50px;">
			<div class="pageFormContent">
				<ul class="searchContent">
					<li>
						<label>始：</label>
						<input type="text" name="start" class="date textInput"/><a class="inputDateButton" href="javascript:;">选择</a>
					</li>
					<li>
						<label>至：</label>
						<input type="text" name="end" class="date"/><a class="inputDateButton" href="javascript:;">选择</a>
					</li>
				</ul>
					
				<div class="subBar" style="margin-top: -20px;">
					<ul>
						<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
					</ul>
				</div>
			</div>
		</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li class="line">line</li>
		</ul>
	</div>


	<table class="table" width="100%" layoutH="138">
		<thead>
		<tr>
		    <th width="30" align="center"><input type="checkbox" group="checkboxx[]" id="check" class="checkboxCtrl" onclick="functrall()"></th>	
			<th width="120" align="center">订单号</th>
			<th width="120" align="center">出厂净重(吨)</th>
			<th width="120" align="center">单价(元)</th>
			<th width="120" align="center">总额</th>
			<th width="120" align="center">调度时间</th>
			<th width="100" align="center">操作</th>
			
		</tr>
		</thead>
		<tbody id="priceentrytbody" name="hjj">
		<define name="number" value="1"/>
		<volist id="vo" name="list">
			<tr target="sid_provider" rel="{$vo['id']}"  >
			    <td><input type="checkbox" name="checkboxx[]" value="{$vo['id']}" onclick="functr()"/></td>
				<td>{$vo['orders']}</td>
				<td>{$vo['Factorynetweight']}</td>
				<td>{$vo['price']}</td>
				<td>{$vo['rental']}</td>
				<td>{$vo['controldate']}</td>
				<!-- <td>{$vo['rank']}</td> -->
				<td><a class="delete" href="__URL__/foreverdelete/ids/{$vo['id']}/navTabId/__MODULE__" target="ajaxTodo" calback="navTabAjaxMenu" title="你确定要删除吗？"><span>删除</span></a>
				|&nbsp;<a href="__URL__/edit/id/{$vo['id']}" mask="true" target="dialog" width="550" height="350">编辑</a></td>
			</tr>
		</volist>
		 <tr id="hj2" bgcolor="#E8F2FD">
        <td width="30" align="center"><b>合计</b></td>
		<td width="120" align="center"><b>共{$count}条</b></td>
		<td width="120" align="center"><b>{$zz}</b></td>
		<td width="120" align="center"></td>
		<td width="120" align="center"><b>{$ze}</b></td>
		<td width="120" align="center"></td>
		<td width="100" align="center"></td>
		</tr>
		</tbody>
<!-- 	<tbody name="hjj2">
       
		</tbody> -->
	</table>
</div>

